package com.example.common.vp.interfaces;

import android.content.Context;

import androidx.lifecycle.Lifecycle;
import androidx.lifecycle.LifecycleObserver;
import androidx.lifecycle.OnLifecycleEvent;

public interface IPresenter<V extends IView> extends LifecycleObserver {

    /**
     *
     * @param view
     */
    void attachView(V view);

    @OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)
    void detachView();

    Context getContext();

}
